package com.an.blog.admin.domain.bo;

import com.an.common.core.domain.BaseEntity;
import com.an.common.core.validate.AddGroup;
import com.an.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 博客相册业务对象 blog_album
 *
 * @author Ann
 * @date 2023-05-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogAlbumBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long albumId;

    /**
     * 相册名称
     */
    @NotBlank(message = "相册名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String albumName;

    /**
     * 相册描述
     */
    private String albumDesc;

    /**
     * 相册封面
     */
    @NotNull(message = "相册封面不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long albumImage;

    /**
     * 状态（0正常 1禁用）
     */
    @NotBlank(message = "状态（0正常 1禁用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
